Prevent Warning

Prevent warning from `detectWebEnvironment` when $hosts isn't an array