add if statement to check for existence of current_object