private static function validateImages(array $images): bool
    {
        $valid = false;

        foreach ($images as $image) {
            if ($image->getType() === Image::TYPE_DEFAULT) {
                $valid = true;
                break;
            }
        }

        if (!$valid) {
            throw new BaseImageMissingException();
        }

        return $valid;
    }
private static function validateImages(array $images): bool
    {
        $valid = false;

        foreach ($images as $image) {
            if ($image->getType() === Image::TYPE_DEFAULT) {
                $valid = true;
                break;
            }
        }

        if (!$valid) {
            throw new BaseImageMissingException();
        }

        return $valid;
    }
private static function validateImages ( array $ images ) : bool { $ valid = false ; foreach ( $ images as $ image ) { if ( $ image -> getType ( ) === Image :: TYPE_DEFAULT ) { $ valid = true ; break ; } } if ( ! $ valid ) { throw new BaseImageMissingException ( ) ; } return $ valid ; }
Checks if there is at least one image of type default

@param array $images The images to validate.
@return boolean Whether the images are valid or not.
Checks if there is at least one image of type default