[rubis] (change:minor) Added sanity check on array length > 0.