Prevent some PHP notices