$site->hasImages()
Checks if the Files collection has any images
$site->hasImages(): bool
Return type
bool
This method modifies the existing $site
object it is applied to and returns it again.
Parent class
Examples
<?php if ($site->hasImages()): ?>
The /content folder contains images.
<?php endif ?>