Instead of using ShellOut you can use backticks or %x().  The stdout automatically gets assigned to your variable.  Then you can test $? to see if it ran successfully.  So if glance isn't there, $?.exitstatus will not equal 0.