public static boolean isPackageAvailable(@NonNull Context context, @NonNull String packageName) {
    """
	A safe method to check if an app is installed.
	
	@param context to be used to check for package
	@param packageName of the app to be checked.
	@return true only if app using packageName is installed.
    """
        return (getPackageInfo(context, packageName) != null);
    }
public static boolean isPackageAvailable(@NonNull Context context, @NonNull String packageName) {
        return (getPackageInfo(context, packageName) != null);
    }
public static boolean isPackageAvailable ( @ NonNull Context context , @ NonNull String packageName ) { return ( getPackageInfo ( context , packageName ) != null ) ; }
A safe method to check if an app is installed.

@param context to be used to check for package
@param packageName of the app to be checked.
@return true only if app using packageName is installed.
A safe method to check if an app is installed .