Check if timeline is given to function