Merge pull request #59 from treshugart/master

$owner -> $parent (not clasing)
Use better way to check if the method is an array.