Also, would you mind explaining what's going on here? Could you for example give an example `pattern` that passes the if condition, and one that does not?