Ignoring injections when argument is not undefined/null