T? getIfAvailable<T>(List<T?> items, int position){ if(items.length > position){ return items[position]; } return null; }