If I remember correctly, that will be true on OS X 10.9, even if XCode is not installed.

--

For  OS X 10.9, I personally use:

```bash
if [ $(xcode-select -p &> /dev/null; printf $?) -ne 0 ]; then
```