private function isEqual($choice, $givenChoice)
    {
        if ($choice === $givenChoice) {
            return true;
        }

        if ($this->getIdentifierValues($choice) === $this->getIdentifierValues($givenChoice)) {
            return true;
        }

        return false;
    }
private function isEqual($choice, $givenChoice)
    {
        if ($choice === $givenChoice) {
            return true;
        }

        if ($this->getIdentifierValues($choice) === $this->getIdentifierValues($givenChoice)) {
            return true;
        }

        return false;
    }
private function isEqual ( $ choice , $ givenChoice ) { if ( $ choice === $ givenChoice ) { return true ; } if ( $ this -> getIdentifierValues ( $ choice ) === $ this -> getIdentifierValues ( $ givenChoice ) ) { return true ; } return false ; }
Check the given choices for equality.

@param mixed $choice
@param mixed $givenChoice

@return bool
Check the given choices for equality .