use has() instead of array_key_exists() (has() uses isset() and is faster than array_key_exists())