public function findByName($name)
    {
        return Arr::first($this->items, function ($key, Contract $skill) use ($name) {
            return $skill->getName() === strtolower($name);
        }, null);
    }
public function findByName($name)
    {
        return Arr::first($this->items, function ($key, Contract $skill) use ($name) {
            return $skill->getName() === strtolower($name);
        }, null);
    }
public function findByName ( $ name ) { return Arr :: first ( $ this -> items , function ( $ key , Contract $ skill ) use ( $ name ) { return $ skill -> getName ( ) === strtolower ( $ name ) ; } , null ) ; }
Find a skill by its name

@param $name
@return \Burthorpe\Runescape\RS3\Skills\Contract|null
Find a skill by its name