Fix PHP notices
Merge pull request #12 from humanmade/fix-notices

Fix PHP notices