only search for case if identifier is not None