check brew installed before trying to use it