added lua function to check for vectors