changed else to if

Changed else to if