Added defined function to the package

defined checks if the specified option exists and returns
true or false depending on the map lookup result