Fixed equality check

Needed double equal signs.