typo3 8.7 query result empty check code example
Example: typo3 check if query result is empty
if($query->execute()->count())
{
return $query->execute();
}
else
{
return NULL;
}
if($query->execute()->count())
{
return $query->execute();
}
else
{
return NULL;
}