checking children before attempting to get first child of a parent (#387)
checking children before attempting to get first child of a parent (#387)

* checking children before attempting to get first child

* updating if statement to suggested solution

developit/preact-compat