Revised isOpen functionality