make additional checks in PHP scripts to remove language warnings