Check isset() first. It's much faster in foreach loops.