Potential fix for PHP Warning

This should fix #327