Removed the empty if and changed operator to not equal.