Check if files is undefined