Only sets the requirement as selected if the index is valid