Preventing potential PHP errors

https://github.com/AdvancedCustomFields/acf5-beta/issues/47
Signed-off-by: Elliot Condon <e@elliotcondon.com>