Removed deprecated HasCommand function