xmp: Proposed Solution to #20

This is a working solution to check for the presence/absence of valid input files.
Has to be adapted to be included, though