clearer if statement formatting