MINOR: equality check consistency

Updated all equality checks to use double equals (==) for consistency.
Merge pull request #2070 from stevie-mayhew/patch-2

MINOR: equality check consistency