добавьте if tp1.q or tp2.q then return; end_if