Checks if a name is provided before import