Can't use function return value (null)