Fixed bug in Util.isAvailable