correted .nil? check for non-array config