Replace elseif without conditional with else