Added basic validation to internal vQuery()