refactor(modaldialog): Removes unnecessary if
docs(modal): Adds reference to dialog service