refactor getBlocked to isBlocked