Added some useful methods for null objects