Fixed the if condition, thankfully it evaluated the same as intended
Removed dobule evaluation of the same condition