https://theexpertdeveloper.medium.com/%EF%B8%8F-how-to-check-if-an-array-is-empty-in-javascript-b4314cf7bb88