replaced !== null and === null with != null and == null, where necessary