Added isVisible() method