The 2nd assert statement is completely unnecessary, and the first one can be resolved by using it in an if instead.