Added isPresenting method