Change full comparison to [[ ]] notation to fix warning