Typo corrected
Added one check more to the example