Use hash instead of case statement
Handle record where form isn't found