private function hasIterator($obj) {
        $hasIterator = false;
        foreach ($obj as $key => $dummy) {
            $hasIterator = true;
            break;
        }
        return $hasIterator;
    }
private function hasIterator($obj) {
        $hasIterator = false;
        foreach ($obj as $key => $dummy) {
            $hasIterator = true;
            break;
        }
        return $hasIterator;
    }
private function hasIterator ( $ obj ) { $ hasIterator = false ; foreach ( $ obj as $ key => $ dummy ) { $ hasIterator = true ; break ; } return $ hasIterator ; }
Check that object have iterator

@param Object $obj
@return bool $hasIterator
Check that object have iterator