isActivityVisible method