Only loop through positions if they exist