Added check if form exists