Use the shorthand is_open? method.