Changed prepend to don't run if function don't exists and if in cli