private static function identifyObject(array $item) : string
    {
        if (
            isset($item['group'])
            and isset($item['members'])
            and is_array($item['members'])
            and ! isset($item['option'])
        ) {
            return "Group";
        }
        elseif (
            isset($item['option'])
            and ! isset($item['members'])
            and ! isset($item['group'])
        ) {
            return "Option";
        }
        else
        {
            throw new OptionLoaderException(
                "Could not identify object",
                $item
            );
        }
    }
private static function identifyObject(array $item) : string
    {
        if (
            isset($item['group'])
            and isset($item['members'])
            and is_array($item['members'])
            and ! isset($item['option'])
        ) {
            return "Group";
        }
        elseif (
            isset($item['option'])
            and ! isset($item['members'])
            and ! isset($item['group'])
        ) {
            return "Option";
        }
        else
        {
            throw new OptionLoaderException(
                "Could not identify object",
                $item
            );
        }
    }
private static function identifyObject ( array $ item ) : string { if ( isset ( $ item [ 'group' ] ) and isset ( $ item [ 'members' ] ) and is_array ( $ item [ 'members' ] ) and ! isset ( $ item [ 'option' ] ) ) { return "Group" ; } elseif ( isset ( $ item [ 'option' ] ) and ! isset ( $ item [ 'members' ] ) and ! isset ( $ item [ 'group' ] ) ) { return "Option" ; } else { throw new OptionLoaderException ( "Could not identify object" , $ item ) ; } }
Identify the object parser that a particular item should be handed to

@param array $item an item that does not only contain int keys

@return string
the type of parser that should be used to parse the given item

@throws Exception if the correc $item parser cannot be identified
Identify the object parser that a particular item should be handed to