you can just do 

```
if valuecheck(a,b)
```
the try/catch is a lot more expensive.