Changed the order for reasons.

else was too encompassing. Also added a second if.