is_valid_m_key function

Check whether specified "many" relationship is valid