Consolidate initial tests for invalid internal variable type