Fixing PHP notice