Catching a few PHP notices.
Merge pull request #54 from lostfocus/phpnotices

Catching a few PHP notices.