Dirty handling of single file or array