These checks should be unnecessary. "properties" will always be there and it will always be an array (if that's how the JSON schema defines it). The only check you could make is if listItems has items or not.