reduce PHP notices