reduce number of php warnings

production has warnings not seen in dev/ci ..