No idea why netbeans keep adding headers, but made an if-statement more consise