Removed unnessecery == operators in if statements