public function entityHasTranslation(string $entityName): bool
    {
        $hasKey = in_array($entityName, $this->translationModelKeys());

        if ($hasKey) {
            return ! empty($hasKey);
        }

        return false;
    }
public function entityHasTranslation(string $entityName): bool
    {
        $hasKey = in_array($entityName, $this->translationModelKeys());

        if ($hasKey) {
            return ! empty($hasKey);
        }

        return false;
    }
public function entityHasTranslation ( string $ entityName ) : bool { $ hasKey = in_array ( $ entityName , $ this -> translationModelKeys ( ) ) ; if ( $ hasKey ) { return ! empty ( $ hasKey ) ; } return false ; }
Check if entity returned on ModelNotFoundException has translation on
exceptions file
@param  string $entityName The model name to check if has translation
@return bool               Has translation or not
Check if entity returned on ModelNotFoundException has translation on exceptions file