Changed method hasVector to static.