private bool CanDeletePage(Object arg) { return arg != null && (!(arg is IEnumerable<IPage>) || !(arg is IPage)); }