check if modules is empty