Add guards against calling brew if it is not installed