@h4cc is right: throw `InvalidArgumentException` if not int. Then, check below is useless