Is_app_installed possibility

Hi,

I need to test Log in to my app via Facebook/G+ and by using standard account.
I would love to use is_app_installed option to verify if Facebook app is already installed on the device, but unfortunately I cannot do this as this option is reserved only for third-party apps, so in the appium logs it uses this command "adb shell pm list packages -3 ‘com.facebook.katana’.
Is there any other way to verify it? I really don’t want to make it manually, thank you.