Testing conditional statement for possible file type extensions