Return NULL on empty pointer