more strict equal checking for null or undefined values