If you are only looking weather file exist or not, then I guess you should avoid that hassle:
You can simply do
#!/bin/bash
ls -l /home/ankur/*.doc &>/dev/null
if [[ $? -ne 0 ]]; then
echo "no doc files exist."
else
echo "files exist"
fi
One can also reduce one statement by using following if
if ls home/ankur/*.doc &>/dev/null; then
echo "files exist"
else
echo "no doc files exist."
fi
Why to awake arrays from their sleep, if you don't want to do anything specific with them :)