Better util to check existence of a nested property