would it be better to just say 

    if (strchr(param, '='))