Check ID's length instead of type