Use isset() instead of array_key_exists() in DIC