So i have a function which is checking for file type, i'm checking the file by signatures, but for GIF files it's not working

```
 def checkPhotoType(file: File): Option[String] = {
    val param = new DataInputStream(new BufferedInputStream(new FileInputStream(file)))
    if (param.readInt() == 0xFFd8FFe0 | param.readInt() == 0xFFd8FFe1 )
      Some("jpg/jpeg")
    if(param.readInt() == 0x474946383961L)
      Some("gif")
    else None

```