is_prefixed function

Check if a factor is prefixed