There is a specific syntax TSQL provides for skipping function execution when any parameters are NULL. This often cleans-up code that would otherwise have to use branching logic to avoid the execution. Fast, simple, and handy.
CREATE FUNCTION dbo.fMyFunction
) returns bit
with returns null on null input
(Available on SQL 2005 and later)