check if Image exist and sub category level


According to CS-Cart Documentation — CS-Cart 4.15.x documentation

we can display caregories and subcategories with custom layout (multicolumn) and with image for each category.

My question is:

How can I check if the image exist or the level of sub category ?

like {if $subcategories or $category_data.description || $category_data.main_pair} code

to prevent the display “no image display” image for categories without image?

The second question is about checking level subcategory to prevent entire subcategory to display any image

Many thanks