do action only when action exists