Some PHP notices removal