Issue #1779870 by gargsuchi: Fixed Getting this error: array-key-exists: The second argument should be either an array or an object.