Fixed the if statement and got rid of the else statement