cleaner if statement