consolidate presence tests