fix check if position exist on array