* modify type check in order to be nearer from the documentation