Defensive programming, added initial input of true, and assert statement.