Fixing PHP warning message for empty price var

Fixes #375
Merge pull request #396 from TheSerapher/issue-375

Fixing PHP warning message for empty price var