Check if unit is attached to context