Use isset() to check for undefined array keys