Know whether prefab or instance

How can I determine whether a reference points to a prefab or instance?

Here’s my custom script:

public class MyClas : MonoBehavior
  public GameObject[] objects = new GameObject[0];

  void Start() {
    for (int i=0; i < objects.Length; +=i) {
      Instantiate(objects*, ...)*

// Destroy the original if it wasn’t a prefab
if (???) {
What goes in the ???

I think I figured it out. This seems to work.

if (objects*.transform.parent != null) {*

If the object is a prefab and thus not placed on the scene, then it’s transform doesn’t have a parent.