Pulling tidying of if statement.