/// <summary>
        /// Checks if both in the media library and not a folder
        /// </summary>
        /// <param name="i"></param>
        /// <returns></returns>
        public virtual bool IsMediaFile(Item i)
        {
            var bases = DataWrapper.GetBaseTemplates(i).ToList();

            return(bases
                   .Any(a =>
                        a.ID.Guid.Equals(TemplateIDs.UnversionedFile.Guid) ||
                        a.ID.Guid.Equals(TemplateIDs.VersionedFile.Guid)));
        }