Changed if to else

changed the second if statement to an else.