Removing ternary operator on targetTail

Suggested by @gkatsev in code review