Added a get-boolean function to avoid null values.