ignore undefined or false values

This PR allows undefined or false values to be passed in. Nice for when you have optional middleware on plugins/hooks that may or may not be defined.