private function hasData(PresentationModel $presentationModel): bool
    {
        foreach ($presentationModel->getVariables() as $value) {
            if (!empty($value)) {
                return true;
            }
        }

        return false;
    }
private function hasData(PresentationModel $presentationModel): bool
    {
        foreach ($presentationModel->getVariables() as $value) {
            if (!empty($value)) {
                return true;
            }
        }

        return false;
    }
private function hasData ( PresentationModel $ presentationModel ) : bool { foreach ( $ presentationModel -> getVariables ( ) as $ value ) { if ( ! empty ( $ value ) ) { return true ; } } return false ; }
Returns whether the presentation model already holds data.

@param PresentationModel $presentationModel

@return bool
Returns whether the presentation model already holds data .