check for invalid children