More robust check for context table join