Fixed many_to_many existance check