Removing of PHP warnings