Let's make that preg_match business look a little less, well, bad. $maybe does not need to be set before going into preg_match(), and since we don't care about the results, we can just bring preg_match() inline.