public function statusExist($status)
    {
        $generator = $this->getStatuses();
        $list = iterator_to_array($generator);

        return in_array($status, $list);
    }
public function statusExist($status)
    {
        $generator = $this->getStatuses();
        $list = iterator_to_array($generator);

        return in_array($status, $list);
    }
public function statusExist ( $ status ) { $ generator = $ this -> getStatuses ( ) ; $ list = iterator_to_array ( $ generator ) ; return in_array ( $ status , $ list ) ; }
Check status existence.

@param string $status string representation of the status

@return bool
Check status existence .