What if the line contains ```array (``` as string value? It's probably more safe to rely on token_get_all() here.