`return isset( $valid[ $ext ] );`?