if this try/except is done for justified performance reasons, can you please indicate so with a comment? Otherwise, can you please do an explicit check for membership?