[UPDATE] extract object and array checks.