public function isPlayable($subGame, $entry = null)
    {
        if (!$subGame) {
            return false;
        }
        
        $sortedPlayableGames = $this->getPlayableGames($entry);
        foreach ($sortedPlayableGames as $pgame) {
            if ($subGame->getIdentifier() === $pgame->getGame()->getIdentifier()) {
                return true;
            }
        }

        return false;
    }
public function isPlayable($subGame, $entry = null)
    {
        if (!$subGame) {
            return false;
        }
        
        $sortedPlayableGames = $this->getPlayableGames($entry);
        foreach ($sortedPlayableGames as $pgame) {
            if ($subGame->getIdentifier() === $pgame->getGame()->getIdentifier()) {
                return true;
            }
        }

        return false;
    }
public function isPlayable ( $ subGame , $ entry = null ) { if ( ! $ subGame ) { return false ; } $ sortedPlayableGames = $ this -> getPlayableGames ( $ entry ) ; foreach ( $ sortedPlayableGames as $ pgame ) { if ( $ subGame -> getIdentifier ( ) === $ pgame -> getGame ( ) -> getIdentifier ( ) ) { return true ; } } return false ; }
is this game playable ?

@return boolean
is this game playable ?