We should make a helper method like _shouldCloseView or something.