   #
   # @param [Selection] selection the selection to split
   split: (selection) ->
-    if !selection
-      return
-    if selection == @
+    if !selection or selection == @
       return
 
     # Check that they have all keys in common (but not necessarily same value!)

  #   Return all the selections
  #   @return [Array<Selection>] an array of selection
  #
  # @overload getSelections(fun)
  #   Return all the selections and filter using fun
  #   @param [Function] fun the function to use for filtering
  #   @return [Array<Selection>] an array of selection
  getSelections: (fun = null)->
    if _.isFunction(fun)
      @_rte.selections.filter(fun) or []
    else
      @_rte.selections or []


  #   Return all the selections and filter using fun
  #   @param [Function] fun the function to use for filtering
  #   @return [Array<Selection>] an array of selection
  getSelections: (filter = null)->
    if _.isFunction(filter)
      @_rte.selections.filter(filter) or []
    else
      @_rte.selections or []

