Fixing #31 php notice
Merge pull request #32 from arcaneadam/7.x

Fixing #31 php notice