Fix paths to be absolute.
Fix array field check to check if the field isset first.