https://www.technilesh.com/2023/10/how-to-check-if-object-is-empty-in.html