Improved (slightly) the application performance by
replacing array_key_exists() by isset() when possible.

isset() is an order of magnitude faster than array_key_exists()