Judge file exists in Bash

#!/usr/bin/bash
if [[ -f filename ]]; then
echo 'file exist'
else
echo 'file not exist'
fi