Fix multiline "if"

My knowledge of ruby is quite limited.