Return only arrays with values laravel 5.6 : <p>I have this array structure, I want the filtered version without the NULL array.</p>

<p><a href="https://i.stack.imgur.com/5PuMj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5PuMj.png" alt="enter image description here"></a></p>
