Add support for nil object in has