Simplify hasRank command