Use better code to check if FB is loaded