Handles null objects
Tests for undefined and null