Why is this preg_match required? It seems like it isn't needed.