add bool. shrink return for array when empty