Avoid php warnings