.Added check for empty current_apge.