Check if current_project exists before using it