{"action":"created","issue":{"url":"https://api.github.com/repos/tobscure/json-api/issues/16","labels_url":"https://api.github.com/repos/tobscure/json-api/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/tobscure/json-api/issues/16/comments","events_url":"https://api.github.com/repos/tobscure/json-api/issues/16/events","html_url":"https://github.com/tobscure/json-api/pull/16","id":94035154,"number":16,"title":"No more array_get() calls","user":{"login":"xbill82","id":5023426,"avatar_url":"https://avatars.githubusercontent.com/u/5023426?v=3","gravatar_id":"","url":"https://api.github.com/users/xbill82","html_url":"https://github.com/xbill82","followers_url":"https://api.github.com/users/xbill82/followers","following_url":"https://api.github.com/users/xbill82/following{/other_user}","gists_url":"https://api.github.com/users/xbill82/gists{/gist_id}","starred_url":"https://api.github.com/users/xbill82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbill82/subscriptions","organizations_url":"https://api.github.com/users/xbill82/orgs","repos_url":"https://api.github.com/users/xbill82/repos","events_url":"https://api.github.com/users/xbill82/events{/privacy}","received_events_url":"https://api.github.com/users/xbill82/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-09T12:27:09Z","updated_at":"2015-07-09T12:39:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tobscure/json-api/pulls/16","html_url":"https://github.com/tobscure/json-api/pull/16","diff_url":"https://github.com/tobscure/json-api/pull/16.diff","patch_url":"https://github.com/tobscure/json-api/pull/16.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/tobscure/json-api/issues/comments/119948318","html_url":"https://github.com/tobscure/json-api/pull/16#issuecomment-119948318","issue_url":"https://api.github.com/repos/tobscure/json-api/issues/16","id":119948318,"user":{"login":"tobscure","id":128862,"avatar_url":"https://avatars.githubusercontent.com/u/128862?v=3","gravatar_id":"","url":"https://api.github.com/users/tobscure","html_url":"https://github.com/tobscure","followers_url":"https://api.github.com/users/tobscure/followers","following_url":"https://api.github.com/users/tobscure/following{/other_user}","gists_url":"https://api.github.com/users/tobscure/gists{/gist_id}","starred_url":"https://api.github.com/users/tobscure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobscure/subscriptions","organizations_url":"https://api.github.com/users/tobscure/orgs","repos_url":"https://api.github.com/users/tobscure/repos","events_url":"https://api.github.com/users/tobscure/events{/privacy}","received_events_url":"https://api.github.com/users/tobscure/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T12:39:22Z","updated_at":"2015-07-09T12:39:22Z","body":"Thanks for the PR, this won't work in some cases though: `getRelationshipFromMethod` may return a falsey value, in which case calling `$method` will fail. Needs to be:\r\n\r\n```php\r\n$method = $this->getRelationshipFromMethod($name);\r\n\r\nif ($method) {\r\n    $element = $method( // .. and so on\r\n```"}}