Regex version

I have created a new "provider" that uses a local file to work out the card based on a regex.

This work required me to remove "type" as a required property on the response as there is no way to work out the card type using regex alone.
can we still check this with the same condition checking as below?