Yes, there was a supports method at first, but doing it this way avoids doing the preg_match twice yes