a lot of things can casue this, one is to put that alias checkops in aliases rather than remotes (thinking you were in the right place)
other things can include mis-spelling it in one place or the other
like
alias chkops
alas checkops
or having it right in the alias
but different in the if or command statement