ATmega328 without board??

How do i know if it has a boot loader on it. How hard is it to install the bootloader?