Protecting the rights of the child inside and outside the EU