protected function callUntilNotNull($args=[])
    {
        foreach ($this->extensions() as $name) {
            $result = $this->callExtension($name, $args);

            if ($result !== null) {
                return $result;
            }
        }

        return null;
    }
protected function callUntilNotNull($args=[])
    {
        foreach ($this->extensions() as $name) {
            $result = $this->callExtension($name, $args);

            if ($result !== null) {
                return $result;
            }
        }

        return null;
    }
protected function callUntilNotNull ( $ args = [ ] ) { foreach ( $ this -> extensions ( ) as $ name ) { $ result = $ this -> callExtension ( $ name , $ args ) ; if ( $ result !== null ) { return $ result ; } } return null ; }
Call all extensions until one returns not null and return the result

@param mixed $args

@return mixed
Call all extensions until one returns not null and return the result