I prefer to use: `if (!element.firstElementChild)`, it's faster if you have several children