Control ADDON to licenses tool.

How can we control our ADDON so that if the client does not have the license, he can not execute the functions?
We want that if the client installs the ADDON patches, but does not install the license, it can not execute the ADDON functions.
Do we have to add some code in our functions?