Check if view is present before calling cleanup method