Verifying that property exists using hasProperty. 

This avoids an exception if property is not found