shouldn't you test also for properties.doesnexist.nested ? 
(nested access where some result in the middle is null/doesn't exist)