Fixed "!check(val) || errOccured" => "errOccured || !check(val)"