`if [ $(some command) ] ; then` looks a bit strange :). How about `if some command ; then`?