Fixing a warning if environments is empty.