Fix PHP Notice, props jjeaton, fixes #1