Pull Request 

add a validation po if `$row` is not empty before creating a new instance. :bow: