Minor improvement to ult check