Define safetail using conditional.