Check for values before using array_combine, to fix notices