Tak pouzi if a throw v sekcii "try". Nechapem ako inac by si chcel testovat hodnotu, ked nie pomocou if.