No need for the ```hasattr```. You can always do ```a_cube_dim_coord.bounds is not None``` or the equivalent ```a_cube_dim_coord.has_bounds()```