check for undefined viewModel