correct existance check in handleFunction