more logic in createLink()
boolen instead of (boolen)
makes more sence if u check with is_array()