Should we have a `hasView()` method instead of doing this null check everywhere?