protected function isRootCategory(array $category)
    {

        // load the root category
        $rootCategory = $this->getRootCategory();

        // compare the entity IDs and return the result
        return $rootCategory[MemberNames::ENTITY_ID] === $category[MemberNames::ENTITY_ID];
    }
protected function isRootCategory(array $category)
    {

        // load the root category
        $rootCategory = $this->getRootCategory();

        // compare the entity IDs and return the result
        return $rootCategory[MemberNames::ENTITY_ID] === $category[MemberNames::ENTITY_ID];
    }
protected function isRootCategory ( array $ category ) { // load the root category $ rootCategory = $ this -> getRootCategory ( ) ; // compare the entity IDs and return the result return $ rootCategory [ MemberNames :: ENTITY_ID ] === $ category [ MemberNames :: ENTITY_ID ] ; }
Return's TRUE if the passed category IS the root category, else FALSE.

@param array $category The category to query

@return boolean TRUE if the passed category IS the root category
Return s TRUE if the passed category IS the root category else FALSE .