Using Functions to Work with NULL