Fixed error message "ERROR 2: array_key_exists() expects parameter 2 to be array, boolean given".
Typo in variable.