changed == to === for null comparison