refactoring form selection checking
refactoring form selection checking


Former-commit-id: bc6e591405fa5f73854f11fb7d41cb5eea4e7cf3 [formerly 7537812bd397db71e7ce953644b7fd3a4fc889a9]

Former-commit-id: 34f7e733188119f5d43bd2ba94e4fafa477ea642
avoorhis/vamps-node.js,avoorhis/vamps-node.js,avoorhis/vamps-node.js,avoorhis/vamps-node.js,avoorhis/vamps-node.js,avoorhis/vamps-node.js