Use 'truthy' checks rather than inexact checks against null