Using !hasmapto while defining maps

Using !hasmapto('<Plug>...') in maps, in this way if the user has defined
 a map to the specific <Plug>... it will not be created. Following :help ftplugin.