Replaces optional chain with sequence of if statements.

New in 2019.3