private function isCleanupNecessary($entityName, $conditions)
    {
        if (empty($conditions)) {
            return false;
        }

        $existing = $this->fetch($entityName, $conditions);

        if (empty($existing)) {
            return false;
        }

        return $existing;
    }
private function isCleanupNecessary($entityName, $conditions)
    {
        if (empty($conditions)) {
            return false;
        }

        $existing = $this->fetch($entityName, $conditions);

        if (empty($existing)) {
            return false;
        }

        return $existing;
    }
private function isCleanupNecessary ( $ entityName , $ conditions ) { if ( empty ( $ conditions ) ) { return false ; } $ existing = $ this -> fetch ( $ entityName , $ conditions ) ; if ( empty ( $ existing ) ) { return false ; } return $ existing ; }
Returns array with entities that should be deleted or false otherwise

@param string $entityName
@param array  $conditions

@return array|bool
Returns array with entities that should be deleted or false otherwise