There are many useful helpers for your code logic
Here you can find useful methods for arrays & objects