you should set a default value  ``sub_proeprty = FALSE`` above, like this you can just check ``if(!$info['sub_property'])``