When2Switch optimization: check if entry set is not empty