protected function cutArgument($name, &$args)
    {
        if (isset($args[$name])) {
            $result = $args[$name];
            unset($args[$name]);
            return $result;
        }

        return null;
    }
protected function cutArgument($name, &$args)
    {
        if (isset($args[$name])) {
            $result = $args[$name];
            unset($args[$name]);
            return $result;
        }

        return null;
    }
protected function cutArgument ( $ name , & $ args ) { if ( isset ( $ args [ $ name ] ) ) { $ result = $ args [ $ name ] ; unset ( $ args [ $ name ] ) ; return $ result ; } return null ; }
Get argument and delete them from list of incoming arguments

@param $name
@param $args
@return array|null
Get argument and delete them from list of incoming arguments