prevent PHP warnings