Return of "defaults read" is not properly tested

Reading plist file with "defaults read" command returns an empty array if the key is not found. The test on the returned value was wrong.