PHP Warning cleanup

Cleaned up a few areas that triggered PHP Warnings