Optimizing initial healthcheck. Resolving some PHP warnings