check_probability function

Check if an argument is a single probability value