With grep, you may have false positive, for instance if a pool foobar exist and you want to create foo.

Re-running ceph osd pool create is safe, or you could test if the pool exists with, for instance, ceph osd pool name get size. If this doesn't return ENOENT, the pool exists.