null check and different check on the FunctionType