Why `|| !viewMain.length == 0`... won't that just disable this behavior in all cases?