Swap these two conditionals to ensure that the `is_string` call is executed last