mixed arguments for has attribute function