added an extra check in isEqual to test for falsy against truthy values (so as to short circuit before trying to look for properties on null)
(cherry picked from commit 99564138e8c745f71f5842871c0a6ce30b26bde7)