Ruby - Array membership check?