public function hasDefinition($varName)
    {
        return $this->contains(function ($index, LineInterface $line) use ($varName) {
            return $line->key() == $varName;
        });
    }
public function hasDefinition($varName)
    {
        return $this->contains(function ($index, LineInterface $line) use ($varName) {
            return $line->key() == $varName;
        });
    }
public function hasDefinition ( $ varName ) { return $ this -> contains ( function ( $ index , LineInterface $ line ) use ( $ varName ) { return $ line -> key ( ) == $ varName ; } ) ; }
Check if the collection has a definition for the given variable name.

@param $varName

@return bool
Check if the collection has a definition for the given variable name .