Adds a fileType function to the utility

Also updates the validPropertyValue function to be more appropriately
named validObject